package com.mao.service.impl.voucher;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mao.dao.voucher.DeliveryVoucherDao;
import com.mao.model.voucher.DeliveryVoucher;
import com.mao.service.voucher.IDeliveryVoucherService;

@Service("deliveryVoucherService")
public class DeliveryVoucherServiceImpl<T> implements IDeliveryVoucherService<T> {
	
	private DeliveryVoucherDao deliveryVoucherDao;
	
	public DeliveryVoucher saveDeliveryVoucher(DeliveryVoucher dv){
		deliveryVoucherDao.saveDeliveryVoucher(dv);
		return dv;
	}

	public DeliveryVoucherDao getDeliveryVoucherDao() {
		return deliveryVoucherDao;
	}

	@Autowired
	public void setDeliveryVoucherDao(DeliveryVoucherDao deliveryVoucherDao) {
		this.deliveryVoucherDao = deliveryVoucherDao;
	}
	
	

}
